<ul class="nav nav-tabs" style="margin-bottom: 0;">

    <?
        switch ($this->router->method) {
            case 'view_new':
            ?>
            <li class="active"><a href="javascript:">General</a></li>
            <li class="hidden"><a href="<?=base_url('object_gallery/view')?>">Photos</a></li>
            <li class="hidden"><a href="<?=base_url('object_info/view')?>">Information</a></li>
            <?            
                break;
            case ($this->router->fetch_class()=='objects' || $this->router->fetch_class()=='object_gallery') && $this->router->method=='view_edit':
            ?>
            <li class="active"><a href="javascript:">General</a></li>
            <li><a href="<?=base_url('object_gallery/view/'.$object['object_ID'].'?post_type=realestate')?>">Photos</a></li>
            <li><a href="<?=base_url('object_info/view/'.$object['object_ID'].'?post_type=realestate')?>">Information</a></li>
            <?
                break;
                
            case $this->router->fetch_class()=='object_info' && $this->router->method=='view':
            ?>
            <li><a href="<?=base_url('objects/view_edit/'.$object_ID.'?post_type=realestate')?>">General</a></li>
            <li><a href="<?=base_url('object_gallery/view/'.$object_ID.'?post_type=realestate')?>">Photos</a></li>
            <li class="active"><a href="javascript:">Information</a></li>
            <?
                break;
                
            case $this->router->fetch_class()=='object_gallery' && $this->router->method == 'view':
            ?>
            <li><a href="<?=base_url('objects/view_edit/'.$object_ID.'?post_type=realestate')?>">General</a></li>
            <li class="active"><a href="javascript:">Photos</a></li>
            <li><a href="<?=base_url('object_info/view/'.$object_ID.'?post_type=realestate')?>">Information</a></li>
            <?
                break;
        }
    ?>

</ul>
